<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>SISPRO Acceso</title>
        <h:outputStylesheet library="css" name="style.css"/>

    </h:head>
    <h:body onload="#{Controlador.inicializar()}">

        <center>
            <h:form>
                 <h:outputLink id="loginLink" value="javascript:void(0)" onclick="dlg.show()" title="login">     
                     <p:graphicImage value="/resources/img/presentacion.gif" styleClass="grafica"/>  
    </h:outputLink>  
                
    <!--<p:growl id="growl" showDetail="true" life="3000" /> -->
  
    <p:dialog id="dialog" header="Acceso a sispro" widgetVar="dlg" resizable="false" modal="true">  
  
        <h:panelGrid id="grid2" columns="3" cellpadding="5">  
            <h:outputLabel for="username" value="Usuario:" />  
            <p:inputText  id="login2" required="true" requiredMessage="Digite su Login" value="#{Controlador.login}"/>
            <p:message id="defaultMessage" for="login2" />
            
            <h:outputLabel for="password" value="Contraseña:" />  
            <p:password id="pass" required="true" requiredMessage="Digite su contraseña"  value="#{Controlador.password}"/>
             <p:message id="default" for="pass" /> 
            
            
            <f:facet name="footer">  
                <p:commandButton id="loginButton" value="Ingresar" action="#{Controlador.validar()}" update="grid2"/>  
            </f:facet>  
            
        </h:panelGrid>  
          
    </p:dialog> 
            </h:form>
             
        </center>

    </h:body>
</html>

